﻿/****************************** Module Header ******************************\
* Plus Name:  SliderConfig.js
* Plus Version:  1.0.0 (2011-12-2)
* Copyright (c) JianDanMai.Com (14507247@qq.com)
* 
* This plus used to initialize the image slider plus.
* 
* This source is subject to the GPL License.
* See http://www.gnu.org/licenses/gpl.html.
* All other rights reserved.
* 
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

var SliderConfig = {};

SliderConfig.init =function(divid, width, height,playerurl) {

    var flashvars = {};
    flashvars.data="index.xml";
    width = width ? width : 640;
    height = height ? height : 250;
    divid = divid ? divid : "Slider";

    var params = {};
    params.menu = "true";
    params.quality = "best";
    params.scale = "noscale";
    params.salign = "tl";
    params.wmode = "transparent";
    params.allowfullscreen = "true";
    params.allowscriptaccess = "sameDomain";

    var attributes = {};
    attributes.id = "FlashDiv";
    attributes.align = "middle";
	if(!playerurl) var playerurl='';
    swfobject.embedSWF(playerurl+"Currencyshow.swf", divid, width, height, "9.0.0", false, flashvars, params, attributes);
}